package com.bey.bow.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "bey_course_detail")
public class CourseDetail extends IdEntity {

	private String title;
	private String vedeoTime;
	private String content;
	private String practicePdf;
	private boolean viewOpen;
	private Course course;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getVedeoTime() {
		return vedeoTime;
	}

	public void setVedeoTime(String vedeoTime) {
		this.vedeoTime = vedeoTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPracticePdf() {
		return practicePdf;
	}

	public void setPracticePdf(String practicePdf) {
		this.practicePdf = practicePdf;
	}

	@ManyToOne(cascade = { CascadeType.DETACH })
	@JoinColumn(name = "course_id")
	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public boolean isViewOpen() {
		return viewOpen;
	}

	public void setViewOpen(boolean viewOpen) {
		this.viewOpen = viewOpen;
	}

}
